package com.tian.mapper;

import com.tian.entity.RetryMessage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RetryMessageMapper {
    int deleteByPrimaryKey(Long id);

    int insert(RetryMessage record);

    RetryMessage selectByPrimaryKey(Long id);

    List<RetryMessage> selectAll();

    int updateByPrimaryKey(RetryMessage record);

    int countByType(int type);

    List<RetryMessage>  pageList(@Param("type") int type,@Param("start") int start,@Param("pageSize") int pageSize);
}